﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>{% block title %}IDKDO{% endblock %}</title>
		
		{% block stylesheets %}
			<link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}" type="text/css" />
			<link rel="stylesheet" href="{{ asset('css/style.css') }}" type="text/css" />
			<link rel="stylesheet" href="{{ asset('js/fancybox/jquery.fancybox-1.3.4.css') }}" type="text/css" />
			<script type="text/javascript" src="{{ asset('js/jquery-1.7.1.min.js') }}"> </script>
			<script type="text/javascript" src="{{ asset('js/script.js') }}"> </script>
			<script type="text/javascript" src="{{ asset('js/bootstrap.js') }}"> </script>
			<script type="text/javascript" src="{{ asset('js/bootstrap-dropdown.js') }}"> </script>
			<script type="text/javascript" src="{{ asset('js/fancybox/jquery.fancybox-1.3.4.pack.js') }}"> </script>
		{% endblock %}
	</head>

	<body>
	
	<div class="container">
		<div id="header" class="hero-unit">
			<h1> IDKDO </h1>
			<h2> Le site pour parler de cadeaux ! </h2>

			<div class="pull-right">
				<form method="post" action="{{path('projetPHPidkdoBundle_recherche')}}" >
					  <input name="titre" type="text" class="search-query" placeholder="Rechercher un cadeau..."></input>
				</form>
				<a href="{{path('projetPHPidkdoBundle_recherche')}}" class="pull-right btn btn-mini" style="margin-top:-10px; font-style: italic;">Recherche avancée <i class="icon-search"></i></a>
			</div>
		</div>
		

		<ul class="nav nav-tabs">
			<li> <a href="{{ path('projetPHPidkdoBundle_homepage') }}" ><i class="icon-home"></i> Accueil</a></li>


			{% if app.session.get('util') != null %}
			<li class="dropdown">
				<a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-gift"></i> Gestion des cadeaux <b class="caret"></b> </a>
				<ul class="dropdown-menu">
					<li><a href="{{ path('projetPHPidkdoBundle_voirCadeauCompte', {'id': app.session.get('util').id}) }}"> Voir mes cadeaux </a></li>
					<li><a href="{{ path('projetPHPidkdoBundle_ajouterCadeau') }}"> Ajouter un cadeau </a></li>
				</ul>
			</li>
			{% endif %}
				<li>
					{% if app.session.get('util') != null %}
						<li><a href="{{ path('projetPHPidkdoBundle_logoutCompte')}}"><i class="icon-off"></i> Se déconnecter </a></li>
					{% else %}
						<li><a href="{{ path('projetPHPidkdoBundle_creerCompte') }}"><i class="icon-user"></i> S'inscrire </a></li>
						<li><a href="{{ path('projetPHPidkdoBundle_loginCompte')}}"><i class="icon-share-alt"></i> Se connecter </a></li>
					{% endif %}
				</li>
		</ul>


		{% for key, flash in app.session.getFlashes() %}
            <span class="label label-info">Information :</span> {{ flash }}
        {% endfor %}

		
		{% block body %}
		{% endblock %}
		
	</div>	

	<hr />

	<div id="footer">Mozzati Antonin - Schürter Yannick - Bonnet Emilien</div>
		
	</body>
</html>